<h1>Listing documents</h1>

<table>
  <tr>  </tr>

<% @documents.each do |document| %>
  <tr>
    <td><%= link_to document.document_file_name, document.document.url %></td>
    <td><%= document.document_file_size %></td>
    <td><%=h document.comment %></td>
    <td><%= link_to 'Show', proposal_document_path(@proposal, document) %> |
	<%= link_to 'Edit', edit_proposal_document_path(@proposal, document) %> | <%= link_to 'Destroy', proposal_document_path(@proposal, document), :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New document', new_proposal_document_path %>
<%= link_to 'Back to proposal', @proposal %>